package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.LeaseAgreement;
import com.atguigu.lease.web.admin.vo.agreement.AgreementQueryVo;
import com.atguigu.lease.web.admin.vo.agreement.AgreementVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author xiongkunYang
 * @description 针对表【lease_agreement(租约信息表)】的数据库操作Mapper
 * @createDate 2025-04-19 22:27:34
 * @Entity com.atguigu.lease.model.entity.LeaseAgreement
 */
@Mapper
public interface LeaseAgreementMapper extends BaseMapper<LeaseAgreement> {

    IPage<AgreementVo> selectAgreementVoPageByQuery(@Param("Page") Page<AgreementVo> page,
                                                    @Param("queryVo") AgreementQueryVo queryVo);

    AgreementVo selectAgreementVoById(Long id);
}




